#!/usr/bin/python
#encoding: utf-8

#import flup.server.fcgi as flups
import uwsgitestPOST



def application(environ,start_response):
	postdata = environ["wsgi.input"].read()

	postdata = uwsgitestPOST.request(postdata,environ)
	if postdata :
		nLen = len(postdata)
	else:
		nLen = 0
		postdata = ''

	start_response('200 OK', [('Content-Type', 'text/plain'),('content-Length',str(nLen))])
	return postdata 




